﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include <cmath>

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class TownArcher : public MonsterObject
    {
    public:
        long long FearTime = 0;
        unsigned char AttackRange = 10;

    protected:
        bool getCanMove() const override;

        TownArcher(MonsterInfo *info);

    public:
        bool IsAttackTarget(MonsterObject *attacker) override;

        void Spawned() override;
    protected:
        void Attack() override;

        void ProcessTarget() override;

        void FindTarget() override;
        bool InAttackRange() override;
    };
}
